package com.example.webpractice.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 学生
 * 数据库通用操作实体类（普通增删改查）
 */
@Data
@TableName("xuesheng")
public class XueshengPO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String xuehao;
    @JsonIgnore
    private String mima;
    private String xueshengxingming;
    private String xingbie;
    private String youxiang;
    private String shoujihaoma;
    private String xiangpian;
    @JsonIgnore
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;
    private String role;
}
